package com.example.spider.provider.multidownload.handler;

import com.example.spider.provider.multidownload.task.DownloadFilePartTask;
import com.example.spider.task.SpiderResultHandler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 处理 cctv 详情页结果
 *
 * @author lym
 */
@Slf4j
@Component
public class DownloadFilePartTaskHandler implements SpiderResultHandler<DownloadFilePartTask, byte[]> {

    /**
     * handle
     */
    @Override
    public void handle(DownloadFilePartTask task, byte[] result) {
        System.out.println(result);
    }
}
